<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>成果管理系统</title>
    <link rel="stylesheet" href="/js/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin.css">
    <link rel="stylesheet" href="/css/global.css">
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>

    <script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
    <script type="text/javascript" src="/js/layui/layui.js"></script>
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo">成果管理系统</div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <i>
                        <img src=" class="layui-nav-img">
                        <i id="username"></i>
                    </i>
                </li>
                <li class="layui-nav-item"><a href="javascript:;" id="logout">退了</a></li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree" lay-filter="admin-side-menu">
                    <#-- 主页面 -->
                    <li class="layui-nav-item ${index!}"><a id="index" href="javascript:;">仪表盘</a></li>
                    <li class="layui-nav-item ${article!}"><a id="article" href="javascript:;">文章列表</a></li>
                    <li class="layui-nav-item ${users!}"><a id="users" href="javascript:;">用户列表</a></li>
                </ul>
            </div>
        </div>
    </div>

<script>
    const data = layui.data('xunyilu');

    $('#index').click(function () {
        window.location.href = "/admin/index?token=" + data.token
    })

    $('#article').click(function () {
        window.location.href = "/admin/article?token=" + data.token
    })

    $('#users').click(function () {
        window.location.href = "/admin/users?token=" + data.token
    })
</script>